<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> 服务场所分析 </title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">

<div class="wrapper wrapper-content animated fadeInUp">
    <div class="row" style="margin-bottom: 20px;">
        <div class="col-sm-3">
            <div class="widget style1 navy-bg">
                <div class="row">
                    <div class="col-xs-4">
                        <i class="fa fa-cloud fa-5x"></i>
                    </div>
                    <div class="col-xs-8 text-right">
                        <span> 今日上网访问量 </span>
                        <h2 class="font-bold">321</h2>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="widget style1 lazur-bg">
                <div class="row">
                    <div class="col-xs-4">
                        <i class="fa fa-envelope-o fa-5x"></i>
                    </div>
                    <div class="col-xs-8 text-right">
                        <span> 近两小时访问量 </span>
                        <h2 class="font-bold">45</h2>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="widget style1 yellow-bg">
                <div class="row">
                    <div class="col-xs-4">
                        <i class="fa fa-music fa-5x"></i>
                    </div>
                    <div class="col-xs-8 text-right">
                        <span> 同比(昨天) </span>
                        <h2 class="font-bold">+5%</h2>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="widget style1" style="background-color: #06cd3e;color: #fff">
                <div class="row">
                    <div class="col-xs-4">
                        <i class="fa fa-music fa-5x"></i>
                    </div>
                    <div class="col-xs-8 text-right">
                        <span> 环比(上周) </span>
                        <h2 class="font-bold">-1%</h2>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>时段访问量折线图</h5>
                </div>
                <div class="ibox-content">
                    <!-- 饼状图 -->
                    <div id="chart3" style="width: 100%;height:300px;"></div>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>近一周访问量柱状图</h5>
                </div>
                <div class="ibox-content">
                    <!-- 饼状图 -->
                    <div id="chart4" style="width: 100%;height:300px;"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>时段访问量</h5>
                </div>
                <div class="ibox-content">

                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>时段</th>
                            <th>访问量</th>
                            <th>同比(昨天)</th>
                            <th>环比(上周)</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>1</td>
                            <td>08:00-10:00</td>
                            <td>9</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i> 2%</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i> 5%</td>
                        </tr>
                        <tr>
                            <td>2</td>
                            <td>10:00-12:00</td>
                            <td>36</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>1%</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i>4%</td>
                        </tr>
                        <tr>
                            <td>3</td>
                            <td>12:00-14:00</td>
                            <td>100</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>3%</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i> 2%</td>
                        </tr>
                        <tr>
                            <td>4</td>
                            <td>14:00-16:00</td>
                            <td>42</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i> 2%</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>4%</td>
                        </tr>
                        <tr>
                            <td>5</td>
                            <td>16:00-18:00</td>
                            <td>32</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i>1%</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>3%</td>
                        </tr>
                        <tr>
                            <td>6</td>
                            <td>18:00-20:00</td>
                            <td>178</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>3%</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i>1%</td>
                        </tr>
                        <tr>
                            <td>7</td>
                            <td>20:00-22:00</td>
                            <td>63</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i>2%</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>5%</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>近一周访问量</h5>
                </div>
                <div class="ibox-content">

                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>日期</th>
                            <th>访问量</th>
                            <th>同比(昨天)</th>
                            <th>环比(上周)</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>1</td>
                            <td>2018.05.23</td>
                            <td>321</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i> 2%</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i> 5%</td>
                        </tr>
                        <tr>
                            <td>2</td>
                            <td>2018.05.22</td>
                            <td>311</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>1%</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i>4%</td>
                        </tr>
                        <tr>
                            <td>3</td>
                            <td>2018.05.21</td>
                            <td>289</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>3%</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i> 2%</td>
                        </tr>
                        <tr>
                            <td>4</td>
                            <td>2018.05.20</td>
                            <td>312</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i> 2%</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>4%</td>
                        </tr>
                        <tr>
                            <td>5</td>
                            <td>2018.05.19</td>
                            <td>243</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i>1%</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>3%</td>
                        </tr>
                        <tr>
                            <td>6</td>
                            <td>2018.05.18</td>
                            <td>178</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>3%</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i>1%</td>
                        </tr>
                        <tr>
                            <td>7</td>
                            <td>2018.05.17</td>
                            <td>289</td>
                            <td class="text-navy"><i class="fa fa-level-up"></i>2%</td>
                            <td class="text-warning"><i class="fa fa-level-down"></i>5%</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>

<!-- echarts -->
<script src="js/echarts.min.js"></script>
<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>
<script>
    $(function () {
        chart3();
        chart4();
        function chart3() {
            // 基于准备好的dom，初始化echarts实例
            var myChart = echarts.init(document.getElementById('chart3'));
            // 指定图表的配置项和数据
            var option = {
                tooltip: {
                    trigger: 'axis'
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis: [
                    {
                        type: 'category',
                        boundaryGap: false,
                        data: ['08:00', '10:00', '12:00', '14:00', '16:00', '18:00', '20:00', '22:00']
                    }
                ],
                yAxis: [
                    {
                        type: 'value'
                    }
                ],
                series: [
                    {
                        name: '搜索引擎',
                        type: 'line',
                        stack: '总量',
                        label: {
                            normal: {
                                show: true,
                                position: 'top'
                            }
                        },
                        areaStyle: {normal: {}},
                        data: [0, 9, 36, 100, 42, 32, 178, 63]
                    }
                ]
            };

            // 使用刚指定的配置项和数据显示图表。
            myChart.setOption(option);
        }

        function chart4() {
            // 基于准备好的dom，初始化echarts实例
            var myChart = echarts.init(document.getElementById('chart4'));
            // 指定图表的配置项和数据
            var option = {
                color: ['#3398DB'],
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                        type: 'line'        // 默认为直线，可选为：'line' | 'shadow'
                    }
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis: [
                    {
                        type: 'category',
                        data: ['2018.05.17', '2018.05.18', '2018.05.19', '2018.05.20', '2018.05.21', '2018.05.21', '2018.05.22', '2018.05.23'],
                        axisTick: {
                            alignWithLabel: true
                        }
                    }
                ],
                yAxis: [
                    {
                        type: 'value'
                    }
                ],
                series: [
                    {
                        name: '直接访问',
                        type: 'bar',
                        barWidth: '60%',
                        data: [321, 311, 289, 312, 243, 178, 289]
                    }
                ]
            };

            // 使用刚指定的配置项和数据显示图表。
            myChart.setOption(option);
        }

    })
</script>

</body>
</html>
